import {THEME_CHANGE} from "../types";

const initState = {
  theme: 'blue'
};
export default function (preState=initState,action) {
  let {type,data} = action;
  switch (type) {
    case THEME_CHANGE:
      return {theme: data};
    default:
      return preState
  }
}